package biz.innovasoft.ndb.query;

import java.util.Date;

import org.prevayler.Query;

import biz.innovasoft.ndb.GenericRepository;

public class FindQueryTransaction implements Query {

	private QueryCriteria query;
	
	public FindQueryTransaction (QueryCriteria query) {
		this.query = query;
	}
	
	public Object query(Object prevalentSystem, Date executionTime)
			throws Exception {
		return ((GenericRepository)prevalentSystem).find(query);
	}

}
